#include <Windows.h>
class DxApp;
class ILoop{
public:
	virtual void loop(DxApp* dx) = 0;
	virtual void onKeyDown(WPARAM wParam) = 0;
	virtual void onMouseDown(int x,int y) = 0;
	virtual void onMouseMove(int x,int y) = 0;
};

class MainLoop:public ILoop
{
public:
	MainLoop();
	~MainLoop(){};
	
	virtual void loop(DxApp* dx);
	virtual void onKeyDown(WPARAM wParam) ;
	virtual void onMouseDown(int x,int y) ;
	virtual void onMouseMove(int x,int y) ;
};
